import request from '@/axios'
import type { UserLoginType, UserType } from './types'

export const loginApi = (params: UserLoginType) => {
  return request.get<UserType>({ url: '/mock/auth/sso-server/doLogin3', params })
}

export const getUserInfoApi = () => {
  return request.get<UserType>({ url: '/auth/user/info' })
}

export const loginOutApi = () => {
  return request.post({ url: '/mock/auth/sso-server/logout' })
}
